package dbTools.coeModel;

import java.util.List;
import java.util.Map;

import dbTools.coeModel.modelElement.IModelMainMethod;
import dbTools.coeModel.modelElement.ModelElement;
import dbTools.tableInfo.info.TableInfo;


public class CodeModel {

	private List<ModelElement> elements;
	
	private String mainPath;
	
	private IModelMainMethod mainMethod;
	
	private Map<String,Object> conditions;
	
	public void writeCodes(TableInfo tableInfo)
	{
		if(elements == null)
		{
			return;
		}
		for(ModelElement element : elements)
		{
			element.writerCode(this, tableInfo);
		}
	}
	
	public List<ModelElement> getElements() {
		return elements;
	}

	public void setElements(List<ModelElement> elements) {
		this.elements = elements;
	}

	public String getMainPath() {
		return mainPath;
	}

	public void setMainPath(String mainPath) {
		this.mainPath = mainPath;
	}

	public IModelMainMethod getMainMethod() {
		return mainMethod;
	}

	public void setMainMethod(IModelMainMethod mainMethod) {
		this.mainMethod = mainMethod;
	}

	public Map<String, Object> getConditions() {
		return conditions;
	}

	public void setConditions(Map<String, Object> conditions) {
		this.conditions = conditions;
	}
	
}
